﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="scorerule_setup.aspx.cs"
    Inherits="EZCRS.HCMS.Web.manage.carduser.scorerule_setup" %>

<%@ Register Src="../usercontrol/titlepage.ascx" TagName="titlepage" TagPrefix="uc2" %>
<%@ Register Assembly="Book38.Net.CustomControl" Namespace="Book38.Net.CustomControl"
    TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>

    <script src="../../common/calendar1.js" language="javascript" type="text/javascript"></script>

</head>
<body>
    <form id="formData" runat="server">
    <uc2:titlepage ID="Titlepage1" runat="server" inittitle="<%$ Resources:Site , LabScoreRuleSetup %>">
    </uc2:titlepage>
    <asp:GridView ID="gvList" runat="server" AllowPaging="True" AlternatingRowStyle-CssClass="line-even" CssClass="main-table"
        AutoGenerateColumns="False" CellPadding="1" EmptyDataRowStyle-HorizontalAlign="center"
        EmptyDataText="<%$ Resources:Site, LabNoData %>" HeaderStyle-CssClass="minfo-title"
        PageSize="1" PagerSettings-Mode="Numeric" RowStyle-CssClass="line-odd" OnRowEditing="gvList_RowEditing"
        DataKeyNames="stpid">
        <EmptyDataRowStyle HorizontalAlign="Center" />
        <Columns>
            <asp:BoundField DataField="stpid" FooterText="编号" HeaderText="编号" Visible="False">
                <ItemStyle HorizontalAlign="Center" />
                 <HeaderStyle CssClass="minfo-title" />
            </asp:BoundField>
            <asp:BoundField  DataField="stpname" HeaderText="<%$ Resources:Site, LabScoreRuleStpName %>" >
             <HeaderStyle CssClass="minfo-title" />
             </asp:BoundField>
            <asp:BoundField DataField="startdate" HeaderText="<%$ Resources:Site, LabScoreRuleStartDate %>"
                HtmlEncode="false" DataFormatString="{0:yyyy-MM-dd}">
                <ItemStyle Width="120px" />
                 <HeaderStyle CssClass="minfo-title" />
            </asp:BoundField>
            <asp:BoundField DataField="enddate" HeaderText="<%$ Resources:Site, LabScoreRuleEndDate %>"
                HtmlEncode="false" DataFormatString="{0:yyyy-MM-dd}">
                <ItemStyle Width="120px" />
                 <HeaderStyle CssClass="minfo-title" />
            </asp:BoundField>
            <asp:BoundField DataField="unitscore" HeaderText="<%$ Resources:Site, LabScoreRuleUnitScore %>">
                <ItemStyle Width="120px" />
                 <HeaderStyle CssClass="minfo-title" />
            </asp:BoundField>
            <asp:BoundField DataField="inuser" HeaderText="<%$ Resources:Site, LabScoreRuleInUser %>">
                <ItemStyle Width="80px" />
                 <HeaderStyle CssClass="minfo-title" />
            </asp:BoundField>
            <asp:BoundField DataField="indate" HeaderText="<%$ Resources:Site, LabScoreRuleInDate %>"
                HtmlEncode="false" DataFormatString="{0:yyyy-MM-dd}">
                <ItemStyle Width="80px" />
                 <HeaderStyle CssClass="minfo-title" />
            </asp:BoundField>
            <asp:TemplateField>
                <HeaderStyle />
                <HeaderTemplate>
                    <asp:Label runat="server" ID="LabEdit" Text="<%$ Resources:Site, LabEdit %>"></asp:Label></HeaderTemplate>
                <HeaderStyle Width="80" />
                 <HeaderStyle CssClass="minfo-title" />
                <ItemStyle HorizontalAlign="center" />
                <ItemTemplate>
                    <asp:LinkButton ID="Edit" runat="server" CommandName="Edit"><img src="../../Image/modify.gif" alt="编辑" style="border:0; " /></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <RowStyle CssClass="line-odd" />
        <HeaderStyle CssClass="title1" />
        <AlternatingRowStyle CssClass="line-even" />
    </asp:GridView>
    <br />
    <table class="main-table" cellspacing="1">
        <tr class="line-odd">
            <td colspan="2" align="right">
                &nbsp;
            </td>
        </tr>
        <tr class="line-even">
            <td colspan="2">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="9%" style="height: 2px">
                            <asp:Label runat="server" ID="LabScoreRuleUnitScore" Text="<%$ Resources:Site, LabScoreRuleUnitScore %>"></asp:Label>：
                        </td>
                        <td width="48%" style="height: 2px">
                            <cc1:webtextbox id="txt_unitscore" runat="server" width="33px" allowempty="False"
                                validtype="Int" cssclass="text-line"><Value>
</Value>
</cc1:webtextbox>
                            <asp:Label runat="server" ID="LabScoreRuleNote1" Text="<%$ Resources:Site, LabScoreRuleNote1 %>"></asp:Label>
                        </td>
                        <td colspan="2" style="height: 2px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="9%" style="height: 54px">
                            <asp:Label runat="server" ID="LabScoreRuleStpName" Text="<%$ Resources:Site, LabScoreRuleStpName %>"></asp:Label>：
                        </td>
                        <td width="48%" style="height: 54px">
                            <cc1:webtextbox id="txt_stpname" runat="server" allowempty="True" cssclass="text-line"
                                maxlength="50" width="291px"><Value>
</Value>
</cc1:webtextbox>
                        </td>
                        <td width="8%" style="height: 54px">
                            &nbsp;
                        </td>
                        <td width="35%" style="height: 54px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label runat="server" ID="LabScoreRuleDate" Text="<%$ Resources:Site, LabScoreRuleDate %>"></asp:Label>：
                        </td>
                        <td>
                            <cc1:webtextbox id="txt_startdate" runat="server" cssclass="text-line" width="100px"
                                text='yyyy-MM-dd'><Value>
</Value>
</cc1:webtextbox>
                            -
                            <cc1:webtextbox id="txt_enddate" runat="server" width="100px" cssclass="text-line"
                                text='yyyy-MM-dd'><Value>
</Value>
</cc1:webtextbox>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label runat="server" ID="LabScoreRuleLvLid" Text="<%$ Resources:Site, LabScoreRuleLvLid %>"></asp:Label>：
                        </td>
                        <td colspan="3">
                            <asp:CheckBoxList ID="txt_lvlid" runat="server" RepeatDirection="Horizontal">
                            </asp:CheckBoxList>
                        </td>
                        <tr style="display: none">
                            <td>
                                <asp:Label runat="server" ID="LabScoreRuleHotelStar" Text="<%$ Resources:Site, LabScoreRuleHotelStar %>"></asp:Label>：
                            </td>
                            <td colspan="3">
                                <asp:CheckBoxList ID="txt_hotelstar" runat="server" RepeatDirection="Horizontal">
                                </asp:CheckBoxList>
                            </td>
                        </tr>
                        <tr style="display: none">
                            <td>
                                <asp:Label runat="server" ID="LabScoreRuleRoomType" Text="<%$ Resources:Site, LabScoreRuleRoomType %>"></asp:Label>：
                            </td>
                            <td colspan="3">
                                <asp:CheckBoxList ID="txt_roomtype" runat="server" RepeatDirection="Horizontal">
                                </asp:CheckBoxList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label runat="server" ID="LabScoreRuleStpComment" Text="<%$ Resources:Site, LabScoreRuleStpComment %>"></asp:Label>：
                            </td>
                            <td colspan="3" rowspan="2">
                                &nbsp;<cc1:webtextbox id="txt_stpcomment" runat="server" height="61px" textmode="MultiLine"
                                    width="456px" cssclass="text-line"></cc1:webtextbox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                                <asp:HiddenField ID="StpId" runat="server" Value="0" />
                                <asp:Button ID="BtnAdd" runat="server" CssClass="bttn" Text="<%$ Resources:Site, ButtonSave %>"
                                    OnClick="BtnAdd_Click" />
                                <asp:Button ID="BtnDel" runat="server" CssClass="bttn" OnClick="BtnDel_Click" Text="<%$ Resources:Site, ButtonDel %>"
                                    Visible="false" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td colspan="3">
                                <asp:Label runat="server" ID="LabScoreRuleNote2" Text="<%$ Resources:Site, LabScoreRuleNote2 %>"></asp:Label>
                            </td>
                        </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
